package day1.circle;

public class TCircle extends Point{
    //水平半径
    private int xRadius;
    //竖直半径
    private int yRadius;

    public TCircle() {
    }

    public TCircle(int x, int y, int xRadius, int yRadius) {
        super(x, y);
        this.xRadius = xRadius;
        this.yRadius = yRadius;
    }
    //重写子类中的方法
    @Override
    public void show(){
        System.out.println("[椭圆]x:"+x+",y:"+y+"水平半径："+xRadius+"竖直半径："+yRadius);
    }
}
